package com.web.base.auth.message;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.blue.validation.IdList;
import com.blue.validation.group.SaveModel;

/**
 * 角色－用户请求内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月15日
 */
public class RoleUserRequest implements Serializable
{
	private static final long serialVersionUID = 1L;

	@NotNull(groups = { SaveModel.class }, message = "用户编号不能为空")
	private Integer userId;

	@IdList(groups = { SaveModel.class }, message = "角色ID列表格式错误")
	private String roleIds;

	public RoleUserRequest()
	{
	}

	public Integer getUserId()
	{
		return this.userId;
	}

	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}

	public String getRoleIds()
	{
		return roleIds;
	}

	public void setRoleIds(String roleIds)
	{
		this.roleIds = roleIds;
	}

}
